import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { options } from './echarts_options';

@Component({
  selector: 'app-overview-right',
  templateUrl: './right.component.html',
  styleUrls: ['./right.component.less']
})
export class RightComponent implements OnInit {
  option1: object
  option2: object
  colorArray = []

  onChartClick(event): void {
    console.log(event)
    this.router.navigate(['./overview/faultDetail'])
  }

  ngOnInit(): void {
    this.option1 = options.getOption1()
    this.option2 = options.getOption2()
  }
  constructor( public router:Router) { }
}
